package com.qidian.mespro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.pro.Workflow;

import java.util.List;

/**
 * @ Description:
 * @ Author: DuYaTao
 * @ Date: 2025/9/18 - 18:59
 */
public interface WorkflowService {

    Result<List<Workflow>> batchDelete(Integer[] ids);


    Result<PageInfo<Workflow>> selectList(Workflow workflow,int page,int size);

    /**
     * 根据工艺编号查询单个工艺信息
     * @param code
     * @return
     */
    Result<Workflow> selectByWorkflowCode(String code);

    /**
     * 新增工艺流程
     * @param workflow
     * @return
     */
    Result<Workflow> addWorkflow(Workflow workflow);

    /**
     * 修改工艺流程
     * @param workflow
     * @return
     */
    Result<Workflow> updateWorkflow(Workflow workflow);

    /**
     * 根据id删除单个工艺
     * @param id
     * @return
     */
    Result<Workflow> deleteWorkflow(Integer id);
 }
